﻿using Sustainalytics.ClientDW.Entities;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Sustainalytics.GCCS.Service
{
    public class GCPrincipleConclusionDto
    {
        public Guid Id { get; set; }
        public List<string> AssessmentComments { get; set; }
        public string AssessmentSummaryAndConclusionIntroductionSentence { get; set; }


        public virtual GCPrincipleConclusionDto LoadFrom(GCPrincipleConclusion data)
        {
            this.Id = data.Id;
            this.AssessmentComments = data.AssessmentComments == null ? null : data.AssessmentComments.Select(el => el).ToList();
            this.AssessmentSummaryAndConclusionIntroductionSentence = data.AssessmentSummaryAndConclusionIntroductionSentence;

            return this;
        }
    }
}
